package com.biostime.dingdingbox.modules.db.service;


import java.util.List;

import org.springframework.stereotype.Service;

import com.biostime.dingdingbox.common.service.CrudService;
import com.biostime.dingdingbox.modules.db.dao.BoxDao;
import com.biostime.dingdingbox.modules.db.dto.BoxDetailDto;
import com.biostime.dingdingbox.modules.db.dto.BoxDto;

import org.springframework.transaction.annotation.Transactional;
import com.biostime.dingdingbox.modules.db.entity.Box;
/**
 * 玩具盒类型表Service
 * @author chenweicheng
 * @version 2016-06-25
 */
@Service
@Transactional(readOnly = true)
public class BoxService extends CrudService<BoxDao, Box> {
	
	public List<BoxDto>  apiGetBoxList(){		
		List<BoxDto> boxList = dao.apiGetBoxList();		
		return boxList;
	}
	
	public BoxDetailDto apiGetBoxById(String boxId){
		return dao.apiGetBoxById(boxId);
	}
	
	public List<BoxDto> apiGetMyBoxList(String userId){
		return dao.apiGetMyBoxList(userId);
	}
	
	public List<Box> show(){
		return dao.show();
	}
	public List<Box> todo(){
		return dao.todo();
	}
}
